package top.hyz.hrm.constant;

import jdk.internal.dynalink.beans.StaticClass;

/**
 * @ClassName SystemConst
 * @Description 常量
 * @Author 韩雨泽
 * @Date 2021/1/17-14:26
 * @Version 1.0
 */
public class SystemConst {
    /**
     * 正则表达式规则
     */
    public static final String PHONE_REGEX = "^1[3-9][0-9]{9}$";
    public static final String EMAIL_REGEX = "^[a-zA-Z0-9_-]+@[a-zA-Z0-9]+\\.[a-zA-Z]{2,4}$";
    public static final String COMPANY_UNIFY_THE_SOCIAL_CREDIT_CODE_REGEX = "^([159Y]{1})([1239]{1})([0-9ABCDEFGHJKLMNPQRTUWXY]{6})([0-9ABCDEFGHJKLMNPQRTUWXY]{9})([0-90-9ABCDEFGHJKLMNPQRTUWXY])$";

    /**
     * 机构状态
     * 0待审核，1 审核通过 ， 2审核失败
     */
    public static final Integer TENANT_PENDING_STATE = 0;
    public static final Integer TENANT_PASSED_STATE = 1;
    public static final Integer TENANT_FAILED_STATE = 2;

    /**
     * 员工状态
     * 0正常，1锁定，2注销
     */
    public static final Integer EMPLOYEE_NORMAL_STATE = 0;
    public static final Integer EMPLOYEE_LOCKING_STATE = 1;
    public static final Integer EMPLOYEE_LOGOUT_STATE = 2;

}
